//
//  FoodDetailPicCell.m
//  shise
//
//  Created by 毛志鹏 on 14/12/20.
//  Copyright (c) 2014年 MZP. All rights reserved.
//

#import "FoodDetailPicCell.h"

@implementation FoodDetailPicCell

- (void)awakeFromNib {
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.pic = [[UIImageView alloc] init];
        [self.contentView addSubview:self.pic];
        self.pic.backgroundColor = [UIColor greenColor];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    _pic.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
